<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">

    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

        <h:outputStylesheet library="css" name="cssLayout.css"/>
        <h:outputStylesheet library="css" name="default.css"/>
        <h:outputStylesheet library="css" name="blueprint/screen.css"/>
        <h:outputStylesheet library="css" name="micss.css"/>
        <h:outputStylesheet library="css" name="WebGrid.css"/>


        <title>Sistema</title>
    </h:head>

    <h:body>

        <div id="top" class="top">
            <ui:insert name="top">
                <h:form>  




                    <p:menubar>  
                        <p:submenu label="Sistema" >  
                            <p:menuitem value="Caja" onclick="PF('dlgmov').show();"/>  
                            <p:separator />  
                            <p:menuitem value="salir" action="#{homeController.adminIndex()}" />  
                        </p:submenu>  

                        <p:submenu label="Catalogo">  
                            <p:menuitem value="Categorias" action="/categoria/index"/>  
                            <p:menuitem value="Articulos" action="#{articuloController.index()}"/>  
                        </p:submenu> 
                        <p:submenu label="Procesos">  
                            <p:submenu label="Compra">
                                <p:menuitem value="Nueva" action="#{compraController.index()}"/>
                                <p:menuitem value="Detalle de compra" action="#{articuloCompraController.index()}"/> 
                                <p:menuitem value="Proveedores" action="#{proveedorController.index()}" />
                                <p:menuitem value="Facturas" action="#" />
                                
                            </p:submenu> 
                            
                            <p:submenu label="Venta" >
                                <p:menuitem value="Nueva" action="#{ventaController.index()}"/>
                                <p:menuitem value="Detalle venta" action="#{articuloVentaController.index()}"/> 
                                <p:menuitem value="Clientes" action="#{clienteController.index()}" />
                                <p:menuitem value="Facturas" action="#" />
                            </p:submenu>  
                        </p:submenu>
                        <p:submenu label="Reportes">  
                            <p:menuitem value="000" url="#"/>  
                            <p:menuitem value="000" url="#"/>  
                        </p:submenu>




                    </p:menubar>
                </h:form> 

            </ui:insert>
        </div>

        <div id="content" class="center_content">
            <ui:insert name="content">


            </ui:insert>
        </div>

    </h:body>

</html>
